<!--
 * @Author: your name
 * @Date: 2021-08-19 14:47:48
 * @LastEditTime: 2021-08-19 15:13:56
 * @LastEditors: Please set LastEditors
 * @Description: other
 * @FilePath: \代码\day04\1-other.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>other</title>
    <style>
        .one:hover {
            cursor:pointer;
        }
        .two,.three {
            width: 100px;
            height: 100px;
            margin-top: 10px;
        }
        .two {
            background-color: blueviolet;
            /* 是否可见 ，占用空间*/
            visibility: hidden;
            /* 展现方式，不占用空间 */
            /* display: none; */
        }
        .three {
            background-color: coral;
            /* 透明度：0~1之间的数，占用空间*/
            opacity: 0;
        }
        .four {
            height: 100px;
            background-color: darkblue;
        }
        /* 高度一般加给子元素，不要加给父元素 */
        .five {
            background-color:darkorange;
            height: 100px;
        }
        .five>span {
            display: inline-block;
        }
        .five>span:nth-child(1) {
            height: 30px;
            background-color: white;
        }
    </style>
</head>
<body>
    <div class="one">hello world</div>
    <div class="two"></div>
    <div class="three"></div>
    <div class="four"></div>

    <div class="five">
        <span>one</span>
        <span>two</span>
        <span>three</span>
    </div>
</body>
</html>
